import request from '@/utils/request';

// 系统
// export const followType = params => request({
//     url: '/admin/statistics/followType',
//     method: 'GET',
//     params
// });

// 系统列表
export const tablelist = params => request({
    url: '/tables/tablelist',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 系统表添加
export const tableAdd = params => request({
    url: '/tables/addTable',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 系统表字段添加
export const addTableField = params => request({
    url: '/tables/addTableField',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 系统表修改
export const tableUpdate = params => request({
    url: '/tables/updateTable',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 系统表字段修改
export const updateTableField = params => request({
    url: '/tables/updateTableField',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 系统表删除
export const deleteTable = params => request({
        url: '/tables/deleteTable',
        method: 'GET',
        params
    });
    // 系统表字段删除
    // export const deleteField = params => request({
    //     url: '/tables/deleteField',
    //     method: 'POST',
    //     params
    // }).then(res => {
    //     return res;
    // });
export const deleteField = params => request({
    url: '/tables/deleteField',
    method: 'POST',
    params
});
